public class OutMacroPropertyModel extends Object implements XMLMarshallable
string,
number, or date.PricingMacroModelThe XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="outProperty">
<xs:complexType>
<xs:attribute name="name" type="xs:string"/>
<xs:attribute name="defaultValue" type="xs:string"/>
<xs:attribute name="type" type="xs:string"/>
<xs:attribute name="description" type="xs:string"/>
</xs:complexType>
</xs:element>
| Constructor and Description |
|---|
OutMacroPropertyModel()
Constructs an empty output property model.
|
OutMacroPropertyModel(String name,
String description,
int type)
Constructs an output property with a name,
a description and a type.
|
OutMacroPropertyModel(String name,
String description,
int type,
Object defaultValue)
Constructs an output property with a name,
a description, a type and a default value.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(String cData)
Adds character data to the content element.
|
void |
addChild(String tagName,
XMLMarshallable child)
Adds a child to the object, the
child representing
the marshallable object which must be added to the element. |
boolean |
checkValidity()
Returns true if the property is valid.
|
Date |
getDateValue()
Gets the default value of the output property as a date.
|
Object |
getDefaultValue()
Gets the default value of the output property.
|
String |
getDescription()
Returns the description of the output property.
|
String |
getName()
Returns the name of the output property.
|
BigDecimal |
getNumberValue()
Gets the default value of the output property as a decimal.
|
String |
getStringValue()
Gets the default value of the output property as a string.
|
int |
getType()
Gets the type of the output property.
|
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children.
|
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being
processed.
|
void |
setDefaultValue(Object defaultValue)
Sets the default value of the output property.
|
void |
setDescription(String d)
Sets the description of the output property.
|
void |
setName(String n)
Sets the name of the output property.
|
void |
setType(int t)
Sets the type of the output property.
|
public OutMacroPropertyModel()
public OutMacroPropertyModel(String name, String description, int type, Object defaultValue)
setType(int) for allowed type value)name - the name of the output property.description - the description of the output property.type - the type of the output property.defaultValue - the default value of the output property.public OutMacroPropertyModel(String name, String description, int type)
setType(int) for type allowed value)name - the name of the output property.description - the description of the output property.type - the type of the output property.public String getName()
public void setName(String n)
n - the name of the output property.public String getDescription()
public void setDescription(String d)
d - the description of the output property.public int getType()
public void setType(int t)
t - the type of the output property.public Object getDefaultValue()
public void setDefaultValue(Object defaultValue)
defaultValue - the default value of the output property.public String getStringValue()
public BigDecimal getNumberValue()
public Date getDateValue()
public boolean checkValidity()
setType(int)).public void setAttributes(XMLAttributes atts)
XMLMarshallablesetAttributes in interface XMLMarshallableatts - The XML attributes of the current elementpublic void addCharacterData(String cData)
XMLMarshallableaddCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void addChild(String tagName, XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.addChild in interface XMLMarshallabletagName - The name of tag for the childchild - The child to be addedpublic void marshal(XMLOutputter output)
XMLMarshallablemarshal in interface XMLMarshallableoutput - The XML output to marshal the object into